package com.jiu345.api.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.jiu345.api.pojo.SkusSpec;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;

/**
 * package:GoodsCategory
 *
 * @author MrLei QQ:235921049
 * @date 2024-05-21
 * desc:购物车
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SkuVo implements Serializable {

    /* id*/
    @TableId(value = "id")
    private Long id;
    /*sku名称*/
    private String skuName;

    /* 商品ID*/
    private Long goodsId;
    /*规格属性组合 JSON字符串*/
    private String attributes;

    /* 条形码*/
    private String barCode;
    /* 商品编号*/
    private String skuCode;

    /* 商品图片*/
    private String imgUrl;

    /* 商品价格 */
    private BigDecimal price;

    /* 市场价格*/
    private BigDecimal oldPrice;

    /* 库存*/
    private Integer stock;
    /*销量*/
    private Long sale;
    /*规格值*/
    private List<HashMap<String,String>> specs;

}
